home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_02
/
9n02107a
< prev
next >
Wrap
Text File
|
1990-12-15
|
467b
|
33 lines
/*Program to turn small letters into Caps.*/
/*R. McLaughlin*/
/*Includes*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
/*Data Structures*/
#define FALSE 0
#define FOREVER 1
#define LOWER "a"
#define UPPER "z"
#define MASK 0x20
int input;
/*Code*/
main()
{
while(FOREVER)
{
input=getchar();
if (input>LOWER)&&(input<UPPER)
{
input=input^MASK;
}
printf(input);
}
}